@card-prefix: ~'w-card';

.@{card-prefix} {
  background: #fff;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  transition: all 0.3s;
  &:not(&-no-hover):hover,
  &.active {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.2);
  }
  &-bordered {
    border: 1px solid #e9e9e9;
  }
  &-head {
    height: 40px;
    line-height: 40px;
    padding: 0 14px;
    border-radius: 2px 2px 0 0;
    zoom: 1;
  }
  &-head + &-body {
    border-top: 1px solid #e9e9e9;
  }
  &-head-title {
    font-size: 14px;
    text-overflow: ellipsis;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 500;
    display: inline-block;
  }
  &-extra {
    position: absolute;
    right: 16px;
    top: 0;
  }
  &-body {
    padding: 14px;
  }
  &-body + &-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }
  &-footer {
    padding: 8px 10px;
    a {
      color: rgba(0, 0, 0, 0.4);
    }
  }
}
